﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Analysis.Entities
{
    public class User
    {
        public Guid UserId { get; set; }
        public int Id { get; set; }
        public string Email { get; set; }
        public string FirstName { get; set; }
        public string LastName { get; set; }
        public string Phone { get; set; }

        public int DepartId { get; set; }
        public string DepartName { get; set; }
        public bool IsFullAccess { get; set; }

        public bool IsPageReport { get; set; }
        public bool IsPageAddress { get; set; }
        public bool IsPageAssort { get; set; }
        public bool IsPageMML { get; set; }
        public bool IsPageSale { get; set; }
        public bool IsPageUser { get; set; }
        public bool IsPageSetup { get; set; }
        
        public string FullName
        {
            get
            {
                return LastName + " " + FirstName;
            }
        }

        public string Password { get; set; }
        public bool CanDelete { get; set; }
    }
}
